home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
DesktopAnimBase.xh
< prev
next >
Wrap
Text File
|
1996-05-01
|
13KB
|
464 lines
/*
* This file was generated by the SOM Compiler.
* FileName: DesktopAnimBase.xh.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emitxh.dll: 2.33
*/
#ifndef SOM_DesktopAnimBase_xh
#define SOM_DesktopAnimBase_xh
class DesktopAnimBase;
#define DesktopAnimBase_MajorVersion 0
#define DesktopAnimBase_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <Collections.h>
#include <DesktopAnimation.h>
#include <Displays.h>
#include <MemAllocators.h>
#include <Types.h>
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMObject_xh
#include <somobj.xh>
#endif
#ifndef DesktopAnimBase_API
#define DesktopAnimBase_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
class SOMClass;
class SOMObject;
class Repository;
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define DesktopAnimBaseCClassData DesktopAnimBaseClassData
#define DesktopAnimBaseNewClass(major,minor) somNewVersionedClassReference(DesktopAnimBase,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define DesktopAnimBaseMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the DesktopAnimBase class object, and the methods it introduces. */
SOMEXTERN struct DesktopAnimBaseClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitializeBase;
somMToken CloseBase;
somMToken GetDesktopAnimCollectionItem;
somMToken ReadDesktopAnimCollection;
somMToken AddDesktopAnimCollectionItem;
somMToken WriteDesktopAnimCollection;
somMToken GetDesktopAnimCollectionItemData;
somMToken RemoveDesktopAnimCollectionItem;
somMToken GetModuleDescription;
} SOMDLINK DesktopAnimBaseClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(DesktopAnimBase_Class_Source) && !defined(SOM_Module_desktopanimbase_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list DesktopAnimBaseClassData
#endif
#endif
/*
* -- Typedefs for DesktopAnimBase Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_DesktopAnimBase_InitializeBase)(DesktopAnimBase *somSelf, Environment *ev,
AVIDType prefsDisplayID,
DesktopAnimModuleDescRef moduleDescRef,
DesktopAnimModuleInfo* moduleInfo);
typedef OSStatus (* SOMLINK somTD_DesktopAnimBase_CloseBase)(DesktopAnimBase *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_DesktopAnimBase_AddDesktopAnimCollectionItem)(DesktopAnimBase *somSelf, Environment *ev,
CollectionTag tag,
UInt32 itemSize,
void* itemData);
typedef OSStatus (* SOMLINK somTD_DesktopAnimBase_GetDesktopAnimCollectionItem)(DesktopAnimBase *somSelf, Environment *ev,
CollectionTag tag,
UInt32* itemSize,
void* itemData);
typedef OSStatus (* SOMLINK somTD_DesktopAnimBase_GetDesktopAnimCollectionItemData)(DesktopAnimBase *somSelf, Environment *ev,
CollectionTag tag,
MemAllocatorRef memAllocator,
UInt32* itemSize,
void** itemData);
typedef OSStatus (* SOMLINK somTD_DesktopAnimBase_RemoveDesktopAnimCollectionItem)(DesktopAnimBase *somSelf, Environment *ev,
CollectionTag tag);
typedef OSStatus (* SOMLINK somTD_DesktopAnimBase_ReadDesktopAnimCollection)(DesktopAnimBase *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_DesktopAnimBase_WriteDesktopAnimCollection)(DesktopAnimBase *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_DesktopAnimBase_GetModuleDescription)(DesktopAnimBase *somSelf, Environment *ev,
DesktopAnimModuleDescRef* moduleDescRef);
/*
* -- Typedefs for Inherited Methods
*/
typedef void (* SOMLINK somTD_DesktopAnimBase_somInit)(DesktopAnimBase *somSelf);
typedef void (* SOMLINK somTD_DesktopAnimBase_somUninit)(DesktopAnimBase *somSelf);
typedef SOMObject* (* SOMLINK somTD_DesktopAnimBase_somDuplicateReference)(DesktopAnimBase *somSelf);
typedef boolean (* SOMLINK somTD_DesktopAnimBase_somCompareReference)(DesktopAnimBase *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_DesktopAnimBase_somRelease)(DesktopAnimBase *somSelf);
typedef void (* SOMLINK somTD_DesktopAnimBase_somFree)(DesktopAnimBase *somSelf);
typedef boolean (* SOMLINK somTD_DesktopAnimBase_somCanDelete)(DesktopAnimBase *somSelf);
typedef SOMClass* (* SOMLINK somTD_DesktopAnimBase_somGetClass)(DesktopAnimBase *somSelf);
typedef corbastring (* SOMLINK somTD_DesktopAnimBase_somGetClassName)(DesktopAnimBase *somSelf);
typedef long (* SOMLINK somTD_DesktopAnimBase_somGetSize)(DesktopAnimBase *somSelf);
typedef boolean (* SOMLINK somTD_DesktopAnimBase_somIsA)(DesktopAnimBase *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_DesktopAnimBase_somRespondsTo)(DesktopAnimBase *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_DesktopAnimBase_somIsInstanceOf)(DesktopAnimBase *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_DesktopAnimBase_somDispatch)(DesktopAnimBase *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_DesktopAnimBase_somClassDispatch)(DesktopAnimBase *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_DesktopAnimBase_somCastObj)(DesktopAnimBase *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_DesktopAnimBase_somResetObj)(DesktopAnimBase *somSelf);
typedef SOMObject* (* SOMLINK somTD_DesktopAnimBase_somPrintSelf)(DesktopAnimBase *somSelf);
typedef void (* SOMLINK somTD_DesktopAnimBase_somDumpSelf)(DesktopAnimBase *somSelf,
long level);
typedef void (* SOMLINK somTD_DesktopAnimBase_somDumpSelfInt)(DesktopAnimBase *somSelf,
long level);
}
#endif /* DesktopAnimBase_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for DesktopAnimBase
*/
class DesktopAnimBase : public SOMObject
{
public:
// DesktopAnimBase::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for DesktopAnimBase, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(DesktopAnimBase);
}
// DesktopAnimBase::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitializeBase */
OSStatus InitializeBase(Environment *ev,
AVIDType prefsDisplayID,
DesktopAnimModuleDescRef moduleDescRef,
DesktopAnimModuleInfo* moduleInfo)
{
return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,InitializeBase)
(this,ev,prefsDisplayID,moduleDescRef,moduleInfo);
}
/* method: CloseBase */
OSStatus CloseBase(Environment *ev)
{
return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,CloseBase)
(this,ev);
}
/* method: AddDesktopAnimCollectionItem */
OSStatus AddDesktopAnimCollectionItem(Environment *ev,
CollectionTag tag,
UInt32 itemSize,
void* itemData)
{
return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,AddDesktopAnimCollectionItem)
(this,ev,tag,itemSize,itemData);
}
/* method: GetDesktopAnimCollectionItem */
OSStatus GetDesktopAnimCollectionItem(Environment *ev,
CollectionTag tag,
UInt32* itemSize,
void* itemData)
{
return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,GetDesktopAnimCollectionItem)
(this,ev,tag,itemSize,itemData);
}
/* method: GetDesktopAnimCollectionItemData */
OSStatus GetDesktopAnimCollectionItemData(Environment *ev,
CollectionTag tag,
MemAllocatorRef memAllocator,
UInt32* itemSize,
void** itemData)
{
return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,GetDesktopAnimCollectionItemData)
(this,ev,tag,memAllocator,itemSize,itemData);
}
/* method: RemoveDesktopAnimCollectionItem */
OSStatus RemoveDesktopAnimCollectionItem(Environment *ev,
CollectionTag tag)
{
return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,RemoveDesktopAnimCollectionItem)
(this,ev,tag);
}
/* method: ReadDesktopAnimCollection */
OSStatus ReadDesktopAnimCollection(Environment *ev)
{
return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,ReadDesktopAnimCollection)
(this,ev);
}
/* method: WriteDesktopAnimCollection */
OSStatus WriteDesktopAnimCollection(Environment *ev)
{
return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,WriteDesktopAnimCollection)
(this,ev);
}
/* method: GetModuleDescription */
OSStatus GetModuleDescription(Environment *ev,
DesktopAnimModuleDescRef* moduleDescRef)
{
return SOM_ResolveD(this,DesktopAnimBase,DesktopAnimBase,GetModuleDescription)
(this,ev,moduleDescRef);
}
/*
* -- Inherited methods
*/
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,DesktopAnimBase,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,DesktopAnimBase,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,DesktopAnimBase,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean DesktopAnimBase_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,DesktopAnimBase,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean DesktopAnimBase_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,DesktopAnimBase,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,DesktopAnimBase,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,DesktopAnimBase,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,DesktopAnimBase,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* DesktopAnimBase */
#endif /* SOM_DesktopAnimBase_xh */